﻿using System;

namespace élénkPróbája.attributes
{
    [AttributeUsage(AttributeTargets.Class | AttributeTargets.Parameter)]
    public class ValidatorAttribute : Attribute
    {
        /// <summary>
		/// The type of the validator used to validate the current type or parameter.
		/// </summary>
		public Type ValidatorType { get; private set; }

        /// <summary>
        /// Creates an instance of <see cref="LitmusValidatorAttribute"/> allowing a validator type to be specified.
        /// </summary>
        public ValidatorAttribute(Type validatorType)
        {
            ValidatorType = validatorType;
        }
    }
}